#!/bin/sh
set -e

export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig

autoreconf -vfi

CC=i686-w64-mingw32-gcc ./configure \
    --host=i686-w64-mingw32 \
    --prefix=/usr/local/win32 \
    --with-directshow \
    --without-gtk \
    --without-python \
    --without-qt --without-java \
    --without-imagemagick \
    --enable-pthread

make
sudo make install
